Skip to content

feat(tunnel): manage Cloudflare tunnel - #328

Open
caiopizzol wants to merge 2 commits into
amp-labs:mainfrom
caiopizzol:feat/managed-cloudflare-tunnel
Open

feat(tunnel): manage Cloudflare tunnel#328
caiopizzol wants to merge 2 commits into
amp-labs:mainfrom
caiopizzol:feat/managed-cloudflare-tunnel

Conversation

@caiopizzol

@caiopizzol caiopizzol commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

What changed

  • exposes amp tunnel;
  • uses the saved amp listen port when --target is omitted;
  • keeps explicit --target support and the port 4000 fallback;
  • preserves the destination path and query; and
  • restores the original destination URL when stopped.

Why

Local Read and Subscribe tests need a public webhook URL. The listener discovery keeps local setup small, while restoring the destination avoids leaving project configuration pointed at an expired tunnel.

Tested

  • Full Go test suite, vet, and golangci-lint 2.9.0
  • Real Asana scheduled Read through the tunnel
  • Real HubSpot contact-created Subscribe through amp listen and amp tunnel
  • Original destinations restored and cloudflared stopped after testing

Keep tunnel setup with webhook destinations because the destination URL is the resource changed during local testing. Restore the original URL on shutdown so repeated tests do not leave project configuration pointing at an expired tunnel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant